{% extends 'base.html' %}
{% load myfilter %}
{% block title %}
    详情页面
{% endblock %}
{% block left %}
    <div id="main">
        <article class="article article-type-post">
            <div class="article-meta">
                <a class="article-date">
                    <time>{{ post.create|date:'Y-m-d H:i:s' }}</time>
                </a>
                <div class="article-category">
                    <a class="article-category-link" href="#" target="_blank">{{ post.pcategory.cname }}</a>
                </div>
            </div>
            <div class="article-inner">
                <header class="article-header">
                    <h1 itemprop="name">
                        <a class="article-title">{{ post.ptitle }}</a>
                    </h1>
                </header>
                <div class="article-entry" itemprop="articleBody">
                    <h2>前言</h2>
                    {{ post.pdesc }}
                    <hr>
                    <br>
                    {{ post.pcontent|md|safe }}
                </div>
            </div>
        </article>
    </div>
{% endblock %}